package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * MedicalCard entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="medicalcard"
    ,catalog="hospital"
)

public class MedicalCard  implements java.io.Serializable {


    // Fields    

     private Integer medicalCardId;
     private Integer clientId;
     private Integer billId;
     private Integer projectId;
     private Double unitPrice;
     private Double clinicCost;
     private Double excutorCost;
     private Integer totalNumber;
     private Integer restNumber;
     private Timestamp startTime;
     private Timestamp deadline;
     private Integer status;


    // Constructors

    /** default constructor */
    public MedicalCard() {
    }

    
    /** full constructor */
    public MedicalCard(Integer clientId, Integer billId, Integer projectId, Double unitPrice, Double clinicCost, Double excutorCost, Integer totalNumber, Integer restNumber, Timestamp startTime, Timestamp deadline, Integer status) {
        this.clientId = clientId;
        this.billId = billId;
        this.projectId = projectId;
        this.unitPrice = unitPrice;
        this.clinicCost = clinicCost;
        this.excutorCost = excutorCost;
        this.totalNumber = totalNumber;
        this.restNumber = restNumber;
        this.startTime = startTime;
        this.deadline = deadline;
        this.status = status;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="medicalCardId", unique=true, nullable=false)

    public Integer getMedicalCardId() {
        return this.medicalCardId;
    }
    
    public void setMedicalCardId(Integer medicalCardId) {
        this.medicalCardId = medicalCardId;
    }
    
    @Column(name="clientId", nullable=false)

    public Integer getClientId() {
        return this.clientId;
    }
    
    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }
    
    @Column(name="billId", nullable=false)

    public Integer getBillId() {
        return this.billId;
    }
    
    public void setBillId(Integer billId) {
        this.billId = billId;
    }
    
    @Column(name="projectId", nullable=false)

    public Integer getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }
    
    @Column(name="unitPrice", nullable=false, precision=22, scale=0)

    public Double getUnitPrice() {
        return this.unitPrice;
    }
    
    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }
    
    @Column(name="clinicCost", nullable=false, precision=22, scale=0)

    public Double getClinicCost() {
        return this.clinicCost;
    }
    
    public void setClinicCost(Double clinicCost) {
        this.clinicCost = clinicCost;
    }
    
    @Column(name="excutorCost", nullable=false, precision=22, scale=0)

    public Double getExcutorCost() {
        return this.excutorCost;
    }
    
    public void setExcutorCost(Double excutorCost) {
        this.excutorCost = excutorCost;
    }
    
    @Column(name="totalNumber", nullable=false)

    public Integer getTotalNumber() {
        return this.totalNumber;
    }
    
    public void setTotalNumber(Integer totalNumber) {
        this.totalNumber = totalNumber;
    }
    
    @Column(name="restNumber", nullable=false)

    public Integer getRestNumber() {
        return this.restNumber;
    }
    
    public void setRestNumber(Integer restNumber) {
        this.restNumber = restNumber;
    }
    
    @Column(name="startTime", nullable=false, length=19)

    public Timestamp getStartTime() {
        return this.startTime;
    }
    
    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }
    
    @Column(name="deadline", nullable=false, length=19)

    public Timestamp getDeadline() {
        return this.deadline;
    }
    
    public void setDeadline(Timestamp deadline) {
        this.deadline = deadline;
    }
    
    @Column(name="status", nullable=false)

    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
   








}